home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1996 #6
/
Amiga Plus CD - 1996 - No. 06.iso
/
pd
/
netz
/
geturl
/
geturl.amirx
next >
Wrap
Text File
|
1996-06-28
|
2KB
|
59 lines
/*
GetURL.AmIRX V1.0, 28.6.96
Author: Markus 'lammy' Lamers
E-Mail: markus.lamers@tu-clausthal.de
WWW : http://home.pages.de/~lammy/ or http://hahn.heim1.tu-clausthal.de/
S-Mail: Osteröder Str.6, 38678 Clausthal-Zellerfeld
Purpose : This script gives the currently loaded URL of your WWW-Browser into
the active window of AmIRC
Supported: IBrowse (>Version R7a) and AWeb.
Install : Just copy the script to amirc/rexx/ and use with /rx geturl
You may like to define a button for it, or put it on a functionkey.
Please have a look at the documentation of AmIRC if you do not know
how this works.
Usage : /rx geturl [<nick1>[,<nick2>...]]
If you provide a nick she gets the response as a /msg, else the
response will be sent to the active channel window.
I recomment to make an alias eg. "/alias geturl /rx geturl %p".
Thanks to: Dominic 'd0m' Wäsch for his debugging help (have also a look at his
domskript, its worth ;)
Please send me a mail if you use this script.
*/
options results
parse arg name
if show('P','IBROWSE') then do
address 'IBROWSE'
'QUERY URL'
url = result
ToAmIRC()
Exit
end
if show('P','AWEB.1') then do
address 'AWEB.1'
'GET URL'
url = result
ToAmIRC()
Exit
end
'echo You must start your WWW-Browser first ;)'
ToAmIRC:
address 'AMIRC.1'
IF name == "" THEN
'SAY ' url
IF name ~= "" THEN
'SAY /MSG 'name url
EXIT
EXIT 10